package com.zyy.joseata.socket;

import com.zyy.joseata.bo.SocketBO;
import com.zyy.joseata.constant.TxEventTypeConst;
import com.zyy.joseata.util.UUIdUtil;

/**
 * @author zhangyy
 */
public class SocketMain {

    public static void main(String[] args) throws InterruptedException {
        SocketClient client= new SocketClient();
        client.start();

        SocketBO socket = new SocketBO();
        socket.setEventType(TxEventTypeConst.GLOBAL_TX_RESPONSE_EVENT);
        for(int i=0;i<12;i++) {
            socket.setTxId(UUIdUtil.getId());

            client.send(socket);
        }
    }
}
